'==================================================================================================
'	Author		David Segura
'	URL			http://winpeguy.com/
'	Source		http://winpe.codeplex.com/
'	Version		20130910
'==================================================================================================
'	Purpose:
'	(Unreleased) Determines McAfee EEPC Version to launch
'==================================================================================================
'	File Locations in Windows:
'	%DeployRoot%\Boot\+WinPE\Menu\Scripts\McAfee.vbs
'==================================================================================================
'	File Location in WinPE:
'	X:\Menu\Scripts\McAfee.vbs
'==================================================================================================
'	Configuration:
'	None.  Editing this file is not recommended
'==================================================================================================
'	Change Log:
'	20130910	Codeplex Beta
'==================================================================================================
Sub subMcAfeeEEPC
	If objFSO.FileExists(strSystemDrive & "\Program Files\Endpoint Encryption\EETech.exe") Then
		MsgBox "Loading McAfee Endpoint Encryption 7",64,MsgBoxTitle
		sCmd = """" & strSystemDrive & "\Program Files\Endpoint Encryption\EETech.exe"""
		objShell.Run sCmd
	ElseIf objFSO.FileExists(strSystemDrive & "\Program Files\Endpoint Encryption 6\EETech.exe") Then
		MsgBox "Loading McAfee Endpoint Encryption 6",64,MsgBoxTitle
		sCmd = """" & strSystemDrive & "\Program Files\Endpoint Encryption 6\EETech.exe"""
		objShell.Run sCmd
	ElseIf objFSO.FileExists(strSystemDrive & "\Program Files\Safeboot\SbWinTech.exe") Then
		MsgBox "Loading McAfee Endpoint Encryption 5",64,MsgBoxTitle
		sCmd = """" & strSystemDrive & "\Program Files\Safeboot\SbWinTech.exe"""
		objShell.Run sCmd
	ElseIf objFSO.FileExists(strSystemDrive & "\Program Files\Endpoint Encryption\EETech64.exe") Then
		MsgBox "Loading McAfee Endpoint Encryption 7 x64",64,MsgBoxTitle
		sCmd = """" & strSystemDrive & "\Program Files\Endpoint Encryption\EETech64.exe"""
		objShell.Run sCmd
	Else
		MsgBox "Cannot find McAfee Endpoint Encryption" & vbCrLf & "" & vbCrLf & _
		"McAfee Endpoint Encryption is not installed in this version of WinPE",16,MsgBoxTitle
	End If
End Sub

Sub subMcAfeeEETechCode
	If objFSO.FileExists(strSystemDrive & "\Program Files\Endpoint Encryption\EETechCode.exe") Then
		sCmd = """" & strSystemDrive & "\Program Files\Endpoint Encryption\EETechCode.exe"""
		objShell.Run sCmd
	ElseIf envBootArch = "x64" Then
		MsgBox "McAfee Encryption Tech Code" & vbCrLf & "" & vbCrLf & _
		"EETechCode.exe is not compatible with x64 Boot Images",16,MsgBoxTitle
	Else
		MsgBox "Cannot find " & strSystemDrive & "\Program Files\Endpoint Encryption\EETechCode.exe" & vbCrLf & "" & vbCrLf & _
		"McAfee Endpoint Encryption may not be supported in this version of WinPE",16,MsgBoxTitle
	End If
End Sub

Sub subMcAfeeStinger
	If strPEBootType = "PXE" Then
		MsgBox "McAfee Stinger" & vbCrLf & "" & vbCrLf & _
		"This utility cannot be run from PXE",16,MsgBoxTitle
	ElseIf objFSO.FileExists(strPEBootDrive & "+Tools\McAfee\stinger" & envBootBit & ".exe") Then
		sCmd = strPEBootDrive & "+Tools\McAfee\stinger" & envBootBit & ".exe"
		objShell.Run sCmd
	Else
		MsgBox "McAfee Stinger" & vbCrLf & "" & vbCrLf & _
		"Unable to locate McAfee Stinger at " & strPEBootDrive & "+Tools\McAfee\stinger" & envBootBit & ".exe",16,MsgBoxTitle
	End If
End Sub